package com.readbook.service;

import com.readbook.dao.QuestionDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class QuestionService {
    @Autowired
    private QuestionDao questionDao;

    public List<Map<String,Object>>getQuestionBybid(Map<String,Object>gmap)
    {
        List<Map<String,Object>>list1=questionDao.getQuestionBybid(gmap);
        return list1;
    }


    public List<Map<String,Object>>getMyAnswerBybid(Map<String,Object>gmap)
    {
        List<Map<String,Object>>list1=questionDao.getMyAnswerBybid(gmap);
        return list1;
    }



    public int insertBookanswer(Map<String,Object>gmap)
    {
        return questionDao.insertBookanswer(gmap);
    }

    /**
     * @author 牟明艳
     * @comments  积分记录
     * @time 2019年9月4日12:44:31
     */
    public int savejfjl(Map<String,Object>gmap)
    {
        return questionDao.savejfjl(gmap);
    }




    public List<Map<String,Object>>getUserDtqk(Map<String,Object>gmap)
    {
        List<Map<String,Object>>list1=questionDao.getUserDtqk(gmap);
        return list1;
    }


    public List<Map<String,Object>>getAnswerpmBynj(Map<String,Object>gmap)
    {
        List<Map<String,Object>>list1=questionDao.getAnswerpmBynj(gmap);
        return list1;
    }


    public int countAnswerpmBynj(Map<String,Object>gmap)
    {
        return questionDao.countAnswerpmBynj(gmap);
    }



}


